BaseSubsystem.AddLIntVariable 方法
新增一個使用者定義變數(長整數)。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IUserVariable<long> AddLIntVariable(
string Name,
IUserVariable Parent = null
)
Function AddLIntVariable(
Name As String,
Parent = null As IUserVariable
) As IUserVariable(Of Long)
參數
Name
型別:string
變數名稱。
Parent
預設值:null
IUserVariable 的父資料夾,預設會將變數加到根資料夾中。
備註
- Name 字串使用 UTF-16 編碼。
- 最多可新增 64 個變數到根資料夾。
- 此變數可用於 KINGSTAR 示波器 及即時記錄檔。
回傳值
型別:IUserVariable<long>
回傳一個使用者定義變數(長整數)。
可用的 EtherCAT 狀態
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
參見